<extend name="Public/base" />
<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a class="tip-bottom" href="{:U('Index/index')}" data-original-title="首页"><i class="icon-home"></i> 首页</a>
			<a class="tip-bottom" href="{:U('User/index')}" data-original-title="">用户管理</a> <a class="current" href="{$post_url}">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br/>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-title">
						<span class="icon"> <i class="icon-align-justify"></i>
						</span>
						<h5>{$meta_title}</h5>
					</div>
					<div class="widget-content nopadding">
						<form class="form-horizontal"  action="">
							<div class="control-group">
								<label class="control-label">姓 名 :</label>
								<div class="controls">
									<input type="text" placeholder="姓名" class="ui-wizard-content" name="member_name" maxlength="6" value="{$list.member_name|htmlspecialchars}">
									<span class="help-block blue">
										姓名为2到6个长度
									</span>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">帐 号 :</label>
								<div class="controls">
									<input type="text" placeholder="帐号为6到30个数字或字母" class="ui-wizard-content" name="login_name" maxlength="{:C('USER_LOGIN_NAME_MAX_LENGTH')}" value="{$list.login_name|htmlspecialchars}" <notempty name="list"> disabled</notempty> >
									<span class="help-block blue">
										帐号为6到30个数字或字母
									</span>
								</div>
								
							</div>
							<div class="control-group">
								<label class="control-label">密 码 :</label>
								<div class="controls">
									<input type="password" placeholder="密码为6到32个字符" class="ui-wizard-content" name="login_pwd" maxlength="{:C('USER_LOGIN_PWD_MAX_LENGTH')}" value="">
									<span class="help-block blue">
										密码为6到32个字符
									</span>
								</div>
							</div>
							
							<div class="control-group">
								<label class="control-label">手机号 :</label>
								<div class="controls">
									<input type="text" placeholder="手机号" class="ui-wizard-content" name="mobile_phone" maxlength="11" value="{$list.mobile_phone|htmlspecialchars}">
									<span class="help-block blue">
										11位手机号哦
									</span>
								</div>
							</div>
							<div class="control-group" style="height:50px;">
								<label class="control-label">用户类型 :</label>
								<div class="controls">
									<select class="form-control span3" name="is_full" style="width:100px;">
										<option value="0" <eq name="list['is_full']" value="0">selected </eq>>全职</option>
										<option value="1" <eq name="list['is_full']" value="1">selected </eq>>兼职</option>
									</select>
								</div>
							</div>
							<div class="form-actions">
								<input type="hidden" name="uid" value="{$list.uid|default=''}"/>
								<button class="btn btn-success" type="submit">提交</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	//初始化登录用户名输入焦点
	tke_form_focus();
	$("form").submit(function(){
		//锁定登录按钮
		$('button').attr('disabled',true);
		var self = $(this);
		$.post("{$post_url}", self.serialize(), call_back, "json");
		return false;
		
		/**
		 * @todo 接收登录返回值
		 * @author PHP@妖孽 <dino_ma@163.com>
		 */
		function call_back(data){
			if(data.status==1){
				tke_alert(data.info,'alert-success');
				setTimeout(function(){
				  if (data.url) {
						location.href=data.url;
					}else{
						location.reload();
					}
				},1500);
			} else {
				tke_alert(data.info,'alert-error');
			}
			$('button').attr('disabled',false);
		}
	});
	//导航高亮
	highlight_subnav("{:U('User/index')}");
});
</script>
</block>